package com.ruoyi.coffee.controller;
import com.ruoyi.coffee.dto.AddressDto;
import com.ruoyi.coffee.dto.PreOrderParamsDto;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author dxj
 * @Description 订单接口
 * @date 2025/1/25 16:10
 */
@RestController
@RequestMapping("/order")
@AllArgsConstructor
@Slf4j
@Api(tags = "咖啡订单")
public class OrderController {
    @PostMapping("/preOrderDetail")
    @ApiOperation(value = "预下单，生成预订单详情", notes = "咖啡预下单")
    public AjaxResult preOrder(@RequestBody PreOrderParamsDto preOrderParamsDto) {
        log.info("预下单", preOrderParamsDto);
        return AjaxResult.success(preOrderParamsDto);
    }
}
